
		<div class="alert" id="alert2" style="padding:15px">
		
			<div id="msg" class="fs3"></div>
			
			
			<a href="javascript:void(0)" class="alert-btn fc1 fs3">确定</a>
			
		</div>
		
		
		<script type="text/javascript" src="{$_C.hy_path}js/jquery-1.3.2.js">	</script>
		<script type="text/javascript" src="{$_C.hy_path}js/main.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
		 
		 
		 var pid = "{$info.wxid|default:'0'}";
		 
		 
		 
		  wx.config({
		    debug: false, 
		    appId: '{$signPackage.appId}',
		    timestamp: {$signPackage.timestamp},
		    nonceStr: '{$signPackage.nonceStr}',
		    signature: '{$signPackage.signature}',
		    jsApiList: [
		      // 所有要调用的 API 都要加到这个列表中
		      'onMenuShareTimeline',
		      'onMenuShareAppMessage',
		    
		    ]
		  });
		
		  wx.ready(function () {
		  	
    wx.onMenuShareTimeline({
    
    title: 'NVIDIA翻牌记忆大挑战',
     link:'http://wxyx.weidianit.com'+vision+'?g=home&m=shake&a=index&pid='+pid,
	 
     imgUrl: 'http://wxyx.weidianit.com/Home/Webroot/default/images/shake/up.png',
      trigger: function (res) {
       
      },
      success: function (res) {
       			
				var url = vision+"?g=home&m=shake&a=share";
				
			
				
				$.post(url,"",function(res){
					
					if(res=='ok')
					showMsg2("分享成功，3秒后将再次进入游戏。");
					
					setTimeout("window.location.href='"+vision+"?g=home&m=shake&a=game'",3000);
				},"text");
      },
      cancel: function (res) {
       
      },
      fail: function (res) {
        alert(JSON.stringify(res));
      }
    });
    
	wx.onMenuShareAppMessage({
      link:'http://wxyx.weidianit.com'+vision+'?g=home&m=shake&a=index&pid='+pid,
     title: 'NVIDIA翻牌记忆大挑战',
    desc: '玩游戏赢大奖，NVIDIA全新装备等你拿！',
  imgUrl: 'http://wxyx.weidianit.com/Home/Webroot/default/images/shake/up.png',
    success: function () { 
	
				var url = vision+"?g=home&m=shake&a=share";
				
				
				$.post(url,"",function(res){
					
					if(res=='ok')
					showMsg2("分享成功，3秒后将再次进入游戏。");
					
					setTimeout("window.location.href='"+vision+"?g=home&m=shake&a=game'",3000);
				},"text");
				
				
    },
    cancel: function () { 
        // 用户取消分享后执行的回调函数
    }
});

  });
		
			
		</script>